<template>
  <van-tabbar v-model="active">
    <van-tabbar-item replace to="/demo1" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item replace to="/demo2" icon="search">商店</van-tabbar-item>
    <van-tabbar-item replace to="/demo3" icon="friends-o">消息</van-tabbar-item>
    <van-tabbar-item replace to="/demo4" icon="setting-o">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script setup>
import { ref } from 'vue';
let active=ref(0)
</script>

<style lang="scss" scoped>
</style>